/* Frame Edit Modal */
/* Overlay container for frame edit modal */
.frame-edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Active state shows modal overlay */
.frame-edit-modal-overlay.active {
    display: flex;
}

/* Modal surface for frame editing */
.frame-edit-modal {
    background: #540000;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Header bar and title */
.frame-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.frame-edit-header h3 {
    color: #FFD700;
    font-size: 20px;
    margin: 0;
    font-weight: normal;
    letter-spacing: 2px;
}

/* Close button for frame edit modal */
.close-frame-edit {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.close-frame-edit:hover {
    color: #FFD700;
}

/* Modal content layout container */
.frame-edit-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form field group */
.frame-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frame-edit-field label {
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Input field styling */
.frame-input {
    padding: 12px 15px;
    background: rgba(139, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus state for input */
.frame-input:focus {
    border-color: #FFD700;
    background: rgba(139, 0, 0, 1);
}

.frame-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Action buttons row */
.frame-edit-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

/* Primary actions: enable preorder & save */
.enable-preorder-btn, /* Save frame button */
.save-frame-btn {
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    flex: 1;
}

/* Sweep shine effect overlay on buttons */
.enable-preorder-btn::before, .save-frame-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

/* Sweep animation on hover */
.enable-preorder-btn:hover::before, .save-frame-btn:hover::before {
    left: 100%;
}

/* Enable preorder button */
.enable-preorder-btn {
    background: linear-gradient(135deg, #540000 0%, #6d0000 50%, #540000 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(84, 0, 0, 0.3);
}

/* Hover effect for enable preorder */
.enable-preorder-btn:hover {
    background: linear-gradient(135deg, #6d0000 0%, #8a0000 50%, #6d0000 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(84, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.save-frame-btn {
    background: linear-gradient(135deg, #7a0000 0%, #9d0000 50%, #7a0000 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(122, 0, 0, 0.3);
}

/* Hover effect for save button */
.save-frame-btn:hover {
    background: linear-gradient(135deg, #9d0000 0%, #b30000 50%, #9d0000 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(122, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Active press state for buttons */
.enable-preorder-btn:active, .save-frame-btn:active {
    transform: translateY(0) scale(1);
    transition: all 0.1s ease;
}

/* Guest-only elements (hide pre-order in admin mode) */
/* Guest-only elements show by default */
.guest-only {
    display: block;
}

/* Hide guest-only elements in admin mode */
.admin-mode .guest-only {
    display: none;
}